package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

//学生和考试多对多
@TableName(value = "StudentProble")
public class StudentProble {

    private Integer spid;//编号

    private Integer studentId;//学生主键

    private Integer pid;//考试表题目id

    private Integer spscore;//考试成绩

    private Integer status;//状态  0:考试中 1：考试结束

    private Date begintime;//开始时间

    private Date endtime;//结束时间

    private Integer exit1;//备用字段1

    private String exit2;//备用字段2

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public StudentProble(Integer spid, Integer studentId, Integer pid, Integer spscore, Integer status, Date begintime, Date endtime, Integer exit1, String exit2) {
        this.spid = spid;
        this.studentId = studentId;
        this.pid = pid;
        this.spscore = spscore;
        this.status = status;
        this.begintime = begintime;
        this.endtime = endtime;
        this.exit1 = exit1;
        this.exit2 = exit2;
    }

    public StudentProble(Integer spid, Integer studentId, Integer pid, Integer spscore, Integer status, Integer exit1, String exit2) {
        this.spid = spid;
        this.studentId = studentId;
        this.pid = pid;
        this.spscore = spscore;
        this.status = status;
        this.exit1 = exit1;
        this.exit2 = exit2;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSpid() {
        return spid;
    }

    public void setSpid(Integer spid) {
        this.spid = spid;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getSpscore() {
        return spscore;
    }

    public void setSpscore(Integer spscore) {
        this.spscore = spscore;
    }

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public StudentProble() {
        super();
    }

    @Override
    public String toString() {
        return "StudentProble{" +
                "spid=" + spid +
                ", studentId=" + studentId +
                ", pid=" + pid +
                ", spscore=" + spscore +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }
}
